package com.shycloud.mido.basic.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 * <p>
 * 积分等级设定表
 * </p>
 *
 * @author yyy
 * @since 2019-02-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BasLevelSetting extends Model<BasLevelSetting> {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 等级数
	 */
	@NotBlank(message = "等级数不能为空")
	private Integer levelNum;

	private String levelName;

	private String levelDesc;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
